#include<stdio.h>

int main(void)
{
	int num,han,ten,one;
	
	scanf("%d",&num);
	
	one=num%10;
	ten=num/10%10;
	han=num/100%10;
	
	printf("%d %d %d",one,ten,han);
	
	return 0;
}

